package com.sxt.generate.table;

import org.apache.commons.lang.StringUtils;

import java.util.ArrayList;
import java.util.List;
/**
 *
 * @ClassName: Configuration
 * @Description:Configuration
 * @version:v1.0.0
 * @author: haning
 * @date:
 */
public class Table
{
    public String tableName;
    public String className;
    public String remark;
    public String tableNameAlias;
    public List<Column> columns = new ArrayList<Column>();
    public List pkColumns = new ArrayList<String>();
    public List notPkColumns= new ArrayList<String>();
    public Clazz clazz;

    public void  initialize() {
        this.className = StringUtils.capitalize(className);
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTableNameAlias() {
        return tableNameAlias;
    }

    public void setTableNameAlias(String tableNameAlias) {
        this.tableNameAlias = tableNameAlias;
    }

    public List getColumns() {
        return columns;
    }

    public void setColumns(List columns) {
        this.columns = columns;
    }

    public List getPkColumns() {
        return pkColumns;
    }

    public void setPkColumns(List pkColumns) {
        this.pkColumns = pkColumns;
    }

    public List getNotPkColumns() {
        return notPkColumns;
    }

    public void setNotPkColumns(List notPkColumns) {
        this.notPkColumns = notPkColumns;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }
}
